# 钟奕升
# 课堂练习20240322
n = 0
while n < 10:
    print("n=", n)
    n += 1  # 相当于n=n+1
print("循环结束以后，n=", n)
n = 0
while 1:
    print("n=", n)
    n += 1  # 相当于n=n+1
    if n > 100:
        break
print("循环结束以后，n=", n)
n = int(input("请输入一个正整数：n="))
s = 0
m = 1
while m <= n:
    s += m  # s=s+m
    print("m=", m, "和s=", s)
    m = m + 1
print("最终s=", s)

print("-----------------以下是for循环=================")
s = 0
for i in range(101):
    s += i
    print("i=", i, "s=", s)
print("最后的s=", s)
print("The end!!")
